package xj.graph2d;

public class Offset {

  public Offset() {
    dx = dy = 0;
  }

  public Offset(Offset offset) {
    if (offset != null) {
      dx = offset.dx;
      dy = offset.dy;
    }
  }

  public Offset(float dx, float dy) {
    this.dx = dx;
    this.dy = dy;
  }

  public void set(float dx, float dy) {
    this.dx = dx;
    this.dy = dy;
  }

  @Override
  public String toString() { 
    return "<" + dx + "," + dy + ">";
  }

  public float dx, dy;

}
